<include file='Admin/Tpl/Public/nav.html' />
<style>
.tr:nth-of-type(even){
	background:#D8F6FF;
}
</style>
<div class="page-content">
    <div class="container-fluid">
    	<br/>
        <ol class="breadcrumb default square rsaquo sm">
            <li><a href="index.html"><i class="fa fa-home"></i></a></li>
            <li><a href="#fakelink">Team In</a></li>
            <li><a href="__URL__/index">学习百宝箱</a></li>
            <li class="active">信息修改</li>
        </ol>
        <div class="the-box full no-border">
            <div class="table-responsive">
                <div class="the-box">
            		<form id="ExampleBootstrapValidationForm" method="post" action="__URL__/upt" enctype="multipart/form-data">
                    	<input type="hidden" name="information_id" value="{$rs.information_id}" />
                        <fieldset>
                            <div class="form-group">
                                <label>百宝箱标题</label>
                                <input type="text" class="form-control must" type="text" name="information_title" value="{$rs.information_title}"/>
                            </div>
                            
                            <div class="form-group">
                                <label>副标题</label>
                                <input class="form-control" type="text" name="information_subtitle" value="{$rs.information_subtitle}"/>
                            </div>
                            <div class="form-group">
                                <label>详细信息</label>
                                <input class="form-control" type="text" name="information_desc" value="{$rs.information_desc}"/>
                            </div>
                            <div class="form-group">
                                <label><input type="radio" name="information_url_type" value="1" checked="checked">本地上传</label>
                                <label><input type="radio" name="information_url_type" value="2">网络上传</label>
                                <input type="file" class="form-control " name="information_url_upload" />
                                <input type="url"  class="form-control " name="information_url_editor" style="display:none">
                            </div>
                             <div class="form-group">
                                <label>频道修改</label>
                                <select class="form-control" tabindex="2"  id="information_channel" name="information_channel">
                                    <foreach name="r" item="value">
                                        <option value="{$value.channel_id}">{$value.channel_name}</option>
                                    </foreach> 
                                </select>
                            </div>
                           
                            <div class="form-group">
                                <input class="btn btn-primary" id="submit" type="submit" value="提交" />
                            </div>
                        </fieldset>
                	</form>
                </div>
            </div>
        </div>
</div>
</body>
<script type="text/javascript">
    $("#information_channel").val("{$rs.information_channel}");
    
    $("body").css("background","none");
    $("#body-wrapper").css("background","none");
    $("input[name='information_url_type']").change(function(){
        var v = $(this).val();
        switch(v){
            case '1':
                $("input[name='information_url_upload']").css('display','block');
                $("input[name='information_url_editor']").css('display','none');
                break;
            case '2':
                $("input[name='information_url_editor']").css('display','block');
                $("input[name='information_url_upload']").css('display','none');
                break;
        }
    })
</script>
</html>